package milkyway.hightech.formatter;

/**
 *
 * @author michael
 */
public enum FormatterTypes
{
    FormatterHTML("HTML"),
    FormatterPlainText("PlainText");

    private String formatter;

    /**
     *
     * @param formatter
     */
    private FormatterTypes(String formatter)
    {
        this.formatter = formatter;
    }

    /**
     *
     * @return
     */
    public String getFormatter()
    {
        return "Formatter" + formatter;
    }
    
    public String getMimeType(FormatterTypes type)
    {
        switch(type)
        {
            case FormatterHTML:
                return ".html";
            case FormatterPlainText:
                return ".txt";
            default:
                return ".txt";
        }
    }
}
